home *** CD-ROM | disk | FTP | other *** search
/ MacAdvocate 2 / MACADVCT.ISO / mac / Goodies / Fun Stuff / Utilities / PrinterSwitch 1.2 / Extras / Scripting Extensions / AppleTalk Access Documentation next >
Text File  |  1997-03-05  |  3KB  |  49 lines

  1.                               AppleTalk Access OSAX
  2.                                           Version 1.0.1
  3.                                      ⌐ 1997 Michael Gorski
  4.                                                  All Rights Reserved
  5.  
  6. What is it...
  7. This is a great scripting addition which will allow you to do three things: get the status of AppleTalk, turn AppleTalk on, and turn AppleTalk off. I have a PowerBook 520 with only one serial port. This means that I cannot use a modem and AppleTalk at the same time. I like to be able to turn AppleTalk off before running my modem related applications. This OSAX allows me to do this by writing a script to run my modem related applications. It requires AppleScript in order to run.
  8.  
  9. Special thanks goes out to Jon Pugh for his hints working with globals and to Gordon Graber for his help with figuring out how to set the right bit in the globals. More thanks to Amnon Reichman for finding a bug and Jeremy Kezer for help with a fix.
  10.  
  11. How it works...
  12. The syntax is quite simple. It's something like this:
  13.  
  14. appletalk on
  15.         This will turn AppleTalk on and return an integer result from opening up AppleTalk. It returns 0 if no problem is encountered. Any other number means that AppleTalk did not open for some reason. In the case that AppleTalk was not loaded at startup (Classic Networking only) ╨ appletalk on will cause AppleTalk to load after a restart.
  16.  
  17. appletalk off
  18.     This will turn off AppleTalk and it returns nothing. It will NOT present you with a dialog asking you whether you want to kill your network connection.
  19.  
  20.     appletalk status
  21.         This returns a string which will contain either ╥active╙, ╥inactive╙, or ╥active on restart╙ depending on whether AppleTalk is active or inactive.
  22.  
  23. Bugs and contacts...
  24. If you have any problems with the software please send me a note and I will  investigate it. This software has not been extensively tested (i.e. only about 10 mahcines/configurations). Please help me out by telling me when you run into problems. I will fix any problems as soon as I can.
  25.  
  26. You can reach me at:
  27.  
  28. Michael Gorski
  29. mgorski@mindspring.com
  30. mgorski@ida.org
  31. (800) 428-2019
  32.  
  33.  
  34. Version History
  35.  
  36. 1.0.0 - 04.06.96 - First public release. Yeah!!
  37. 1.0.1 - 02.20.97 - I encountered a problem in which if you are using Classic Networking
  38.                               it would not set AppleTalk to be on after restart. I also added the ability
  39.                               for appletalk status to return "active on restart" in these situations. And it
  40.                               now works with a try statement.
  41.  
  42. Legal Stuff
  43. This software is FREE to anyone who uses it. Please send me a note if you use it often.
  44.  
  45. I and/or my company in no way are responsible for any damage this code resource may cause. It comes without warranty, and I have no way of knowing how it will behave on different machines and/or systems.
  46.  
  47. I, Michael Gorski, retain full rights to the software enclosed. It may be freely distributed to anyone. There is no charge for the software, and it shall remain free to anyone who wants to use it. The use of the software is limited to its inteded uses (i.e. AppleScript) and should not be reverse engineered or diassembled by anyone. If you really want to know how it was done just send me an e-mail and I'll give you the source code!
  48.  
  49. AppleScript is a product and trademark of Apple Computer, Inc.